from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path
from django.urls import include
from . import views
from login import views as login_views
from community import views as community_views

urlpatterns = [
                  path('admin/', admin.site.urls),
                  path('login/', include('login.urls')),
                  path('', views.view_home),
                  # path('index/', views.index),
                  # path('login/', views.login),
                  path('register/', login_views.register),
                  path('logout/', login_views.logout),
                  path('captcha/', include('captcha.urls')),  # 增加这一行
                  path('confirm/', login_views.user_confirm),
                  path('community/', include('community.urls')),
                  path('question/', include('question.urls')),
                  # path('', admin.site.urls),

              ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
